package com.crm.model.system.pojo;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.time.LocalDateTime;

@Data
@TableName("crm_user")
public class User {
    private Integer id; //用户编号
    private String salt; //盐
    private String name; //用户名称
    private String password; //密码
    private String phone; //手机号码
    private String account; //账号
    private Short sex; //性别
    private String post; //岗位
    private String department; //部门
    private Short status; //状态

    @TableField("role_name")
    private String roleName; //角色名称

    @TableField("created_id")
    private Integer createdId; //创建人id

    @TableField("updated_id")
    private Integer updatedId; //修改人id

    @TableField("created_time")
    private LocalDateTime createdTime; //创建时间

    @TableField("updated_time")
    private LocalDateTime updatedTime; //修改时间
}
